package com.gxa.community.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 优惠券记录表
 * </p>
 *
 * @author XYJ
 * @since 2022-07-20
 */
@TableName("operate_ticket_code")
@ApiModel(value = "OperateTicketCode对象", description = "优惠券记录表")
public class OperateTicketCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增di")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券码")
    private String ticketCode;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("领取方式/1-后台赠送/2-主动领取/3-全场赠送")
    private Integer type;

    @ApiModelProperty("优惠券使用状态/-2-已过期/1-未使用/2-已使用")
    private Integer status;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("订单编号")
    private String orderOn;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTicketCode() {
        return ticketCode;
    }

    public void setTicketCode(String ticketCode) {
        this.ticketCode = ticketCode;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public String getOrderOn() {
        return orderOn;
    }

    public void setOrderOn(String orderOn) {
        this.orderOn = orderOn;
    }

    @Override
    public String toString() {
        return "OperateTicketCode{" +
        "id=" + id +
        ", ticketCode=" + ticketCode +
        ", userId=" + userId +
        ", type=" + type +
        ", status=" + status +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", orderOn=" + orderOn +
        "}";
    }
}
